package com.artisan.domain.repositoryInterface;

import com.artisan.domain.entity.MAdType;
import com.artisan.domain.entity.MStartPage;
import com.artisan.domain.info.AdInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * 启动页数据访问接口
 */
@Repository
public interface IStartPageRepository extends JpaRepository<MStartPage, Integer> {
    @Query(value = "select c from MStartPage c where c.status=1 order by c.addDate desc ")
    Page<MStartPage> findList(Pageable pageable);
}
